# -*- coding:utf-8 -*-
# @Time:2023/6/2 22:42
# @Author: cevent
# @name=taskDemo

import time

# 这里可以返回上一级
from demo import celeryDemo


@celeryDemo.task(name='demo.taskDemo.add')
def add(x, y):
    print('task add demo is loading ...')
    time.sleep(5)
    return x + y
